package fr.uvsq.isty.bdh.hchess.interfacing;

import ictk.boardgame.*;
import ictk.boardgame.chess.*;
import ictk.boardgame.chess.io.PGNReader;
import ictk.boardgame.io.InvalidGameFormatException;
import java.io.*;

/**
 *
 * @author Florent Hemmi <florent.hemmi@gmail.com>
 */
public class HelpersMain {
    
    public static void main(String[] args) throws Exception {
        ChessGame g;
        int[][] allMoves;
        
        PGNReader pgn = new PGNReader(new FileReader(new File("demo.pgn")));
        pgn.readGame();
        g = (ChessGame) pgn.getGame();
        g.getHistory().goToEnd();
        g.getHistory().prev();
        
        allMoves = Helpers.intArrayFromCurrentHistoryPosition(g.getHistory());
    }
}
